package com.smzd.ccms.dao;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smzd.ccms.domain.SysDict;
import com.smzd.ccms.mappers.SysDictMapper;
import com.smzd.core.dao.AbstractDao;
import com.smzd.core.mappers.IMapper;

@Component
public class SysDictDao extends AbstractDao<SysDict> {
    @Autowired
    private SysDictMapper mapper;
    
    @Override
    protected IMapper<SysDict> getMapper() {
        return mapper;
    }

	public List<SysDict> getSysDictsForChCfgs(int chId, String ids) {
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("chId", chId);
		params.put("ids", ids);
		return mapper.getSysDictsForChCfgs(params);
	}
}